function Ankhy_Druid_1()
	-- Autoaccept LFR invite
		AcceptProposal();
		
		-- Buffs
		if not ccrPlayerHasBuff("Moonkin Form")
		then
			ccrCast("Moonkin Form")
			return
		end
		if not (ccrPlayerHasBuff("Blessing of Kings") or ccrPlayerHasBuff("Embrace of the Shale Spider") or ccrPlayerHasBuff("Legacy of the Emperor") or ccrPlayerHasBuff("Mark of the Wild"))
			then
				ccrCast("Mark of the Wild")
				return
		end
		-- if low on mana
		if ccrPlayerMana() <= 30
			and SpellIsReady("Innervate")
				then
					ccrCast("Innervate")
		end
	

	if ccrPlayerIsInCombat() and Target and Target:Exists() and not Target:IsDead() then
		-- Rotation
		if SpellIsReady("Starsurge")
			then
				if not ccrPlayerIsCastingSpell("Starsurge") and ccrPlayerHasBuff("Shooting Stars")
					then SpellStopCasting() end  
				ccrCastAttack("Starsurge")
				return
		else
			if SpellIsReady("Starfall")
				then
					ccrCastAttack("Starfall")
					return
			else
				-- Dot's
				if not ccrTargetHasMyDebuff("Moonfire") or ccrUnitHasMyDebuffDuration("target", "Moonfire") < 2
					then
						ccrCast("Moonfire")
					return
				else
					if not ccrTargetHasMyDebuff("Sunfire") or ccrUnitHasMyDebuffDuration("target", "Sunfire") < 2
						then
							ccrCast("Sunfire")
						return
					else
		local direction = GetEclipseDirection()
						if direction == "moon" 
							then
								ccrCastAttack("Wrath")
								return
						else
							if direction == "sun" 
								then
									ccrCastAttack("Starfire")
									return
								end	
							end
						end
					end
				end
			end
	end	
end		
